//分类相关的数据类型
export interface Responsedata {
    code: number,
    message: string,
    ok: boolean
}
export interface CategoryObj {
    id: number | string
    name: string
    category1Id?: number
    category2Id?: number
}
//相应接口返回数据类型
export interface CategoryResponseDate extends Responsedata {
    data: CategoryObj[]
}



//属性值对象ts类型
export interface AttrValue {
    id?: number,
    valueName: string
    attrId?: number
    flag?: boolean
}
//存储每一个属性值的数组类型
export type AttrValueList = AttrValue[]
//属性对象
export interface Attr {
    id?: number
    attrName: string
    categoryId: number | string
    categoryLevel: number
    attrValueList: AttrValueList

}
//存储每一个属性对象的数组的ts类型
export type AttrList = Attr[]

//属性接口返回的数据ts类型
export interface AttrResponseData extends Responsedata {
    data: Attr[]
}